#include "memdb.h"

#ifdef __DEBUG__
FILE* p_trace_file = 0;
#endif

DEFINE_POINTER_LIST(int);

int main()
{
#ifdef __DEBUG__
	time_t cur_time;
	p_trace_file = fopen("./trace.txt", "w");
	if(p_trace_file == NULL)
	{
		printf("trace file open error.\n\n");
	}
	time(&cur_time);
	fprintf(p_trace_file, "Start running at %s.\n\n", ctime(&cur_time));
#endif
	
	//create database mydb max_size 20 on 'C:/db.mdf' log on 'C:/log.log' user='mirikle' password='pas'
	
	start_memdb();


#ifdef __DEBUG__
	fclose(p_trace_file);
#endif

}

